/*! @sentry/browser & @sentry/tracing 7.64.0 (e01d8f8) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){class n{static __initStatic(){this.id="Replay"}constructor(t){this.name=n.id,console.error("You are using new Replay() even though this bundle does not include replay.")}setupOnce(){}start(){}stop(){}flush(){}}n.__initStatic();const e=Object.prototype.toString;function r(t){switch(e.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return l(t,Error)}}function i(t,n){return e.call(t)===`[object ${n}]`}function s(t){return i(t,"ErrorEvent")}function o(t){return i(t,"DOMError")}function c(t){return i(t,"String")}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return i(t,"Object")}function h(t){return"undefined"!=typeof Event&&l(t,Event)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function d(t){return"number"==typeof t&&t!=t}function l(t,n){try{return t instanceof n}catch(t){return!1}}function p(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function m(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{e.push(String(r))}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function y(t,n,e=!1){return!!c(t)&&(i(n,"RegExp")?n.test(t):!!c(n)&&(e?t===n:t.includes(n)))}function v(t,n=[],e=!1){return n.some((n=>y(t,n,e)))}function g(t,n,e=250,r,i,s,o){if(!(s.exception&&s.exception.values&&o&&l(o.originalException,Error)))return;const c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var u,a;c&&(s.exception.values=(u=b(t,n,i,o.originalException,r,s.exception.values,c,0),a=e,u.map((t=>(t.value&&(t.value=p(t.value,a)),t)))))}function b(t,n,e,r,i,s,o,c){if(s.length>=e+1)return s;let u=[...s];if(l(r[i],Error)){_(o,c);const s=t(n,r[i]),a=u.length;T(s,i,a,c),u=b(t,n,e,r[i],i,[s,...u],s,a)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(l(r,Error)){_(o,c);const a=t(n,r),h=u.length;T(a,`errors[${s}]`,h,c),u=b(t,n,e,r,i,[a,...u],a,h)}})),u}function _(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:n}}function T(t,n,e,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function w(t){return t&&t.Math==Math?t:void 0}const S="object"==typeof globalThis&&w(globalThis)||"object"==typeof window&&w(window)||"object"==typeof self&&w(self)||"object"==typeof global&&w(global)||function(){return this}()||{};function E(){return S}function $(t,n,e){const r=e||S,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=n())}const x=E();function k(t,n={}){try{let e=t;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let a;const h=Array.isArray(n)?n:n.keyAttrs,f=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&s++<r&&(a=O(e,h),!("html"===a||s>1&&o+i.length*u+a.length>=f));)i.push(a),o+=a.length,e=e.parentNode;return i.reverse().join(c)}catch(t){return"<unknown>"}}function O(t,n){const e=t,r=[];let i,s,o,u,a;if(!e||!e.tagName)return"";r.push(e.tagName.toLowerCase());const h=n&&n.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(h&&h.length)h.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(e.id&&r.push(`#${e.id}`),i=e.className,i&&c(i))for(s=i.split(/\s+/),a=0;a<s.length;a++)r.push(`.${s[a]}`);const f=["aria-label","type","name","title","alt"];for(a=0;a<f.length;a++)o=f[a],u=e.getAttribute(o),u&&r.push(`[${o}="${u}"]`);return r.join("")}const j=["debug","info","warn","error","log","assert","trace"];!function(){const t={enable:()=>{},disable:()=>{}};j.forEach((n=>{t[n]=()=>{}}))}();const R=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function C(t,n=!1){const{host:e,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&i?`:${i}`:""}@${e}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function I(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function D(t){const n="string"==typeof t?function(t){const n=R.exec(t);if(!n)return void console.error(`Invalid Sentry Dsn: ${t}`);const[e,r,i="",s,o="",c]=n.slice(1);let u="",a=c;const h=a.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),a=h.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return I({host:s,pass:i,path:u,projectId:a,port:o,protocol:e,publicKey:r})}(t):I(t);if(n)return n}class L extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function M(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);if("function"==typeof i)try{A(i,r)}catch(t){}t[n]=i}function N(t,n,e){Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}function A(t,n){const e=n.prototype||{};t.prototype=n.prototype=e,N(t,"__sentry_original__",n)}function q(t){return t.__sentry_original__}function H(t){if(r(t))return{message:t.message,name:t.name,stack:t.stack,...U(t)};if(h(t)){const n={type:t.type,target:P(t.target),currentTarget:P(t.currentTarget),...U(t)};return"undefined"!=typeof CustomEvent&&l(t,CustomEvent)&&(n.detail=t.detail),n}return t}function P(t){try{return n=t,"undefined"!=typeof Element&&l(n,Element)?k(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var n}function U(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function F(t){return B(t,new Map)}function B(t,n){if(a(t)){const e=n.get(t);if(void 0!==e)return e;const r={};n.set(t,r);for(const e of Object.keys(t))void 0!==t[e]&&(r[e]=B(t[e],n));return r}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const r=[];return n.set(t,r),t.forEach((t=>{r.push(B(t,n))})),r}return t}const X=/\(error: (.*)\)/,z=/captureMessage|captureException/;function W(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0)=>{const r=[],i=t.split("\n");for(let t=e;t<i.length;t++){const e=i[t];if(e.length>1024)continue;const s=X.test(e)?e.replace(X,"$1"):e;if(!s.match(/\S*Error: /)){for(const t of n){const n=t(s);if(n){r.push(n);break}}if(r.length>=50)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(n[n.length-1].function||"")&&n.pop();n.reverse(),z.test(n[n.length-1].function||"")&&(n.pop(),z.test(n[n.length-1].function||"")&&n.pop());return n.slice(0,50).map((t=>({...t,filename:t.filename||n[n.length-1].filename,function:t.function||"?"})))}(r)}}const G="<anonymous>";function J(t){try{return t&&"function"==typeof t&&t.name||G}catch(t){return G}}const K=E();function Y(){if(!("fetch"in K))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function V(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const Q=E();const Z=E(),tt={},nt={};function et(t){if(!nt[t])switch(nt[t]=!0,t){case"console":!function(){if(!("console"in Z))return;j.forEach((function(t){t in Z.console&&M(Z.console,t,(function(n){return function(...e){it("console",{args:e,level:t}),n&&n.apply(Z.console,e)}}))}))}();break;case"dom":!function(){if(!("document"in Z))return;const t=it.bind(null,"dom"),n=ht(t,!0);Z.document.addEventListener("click",n,!1),Z.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=Z[n]&&Z[n].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(M(e,"addEventListener",(function(n){return function(e,r,i){if("click"===e||"keypress"==e)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[e]=s[e]||{refCount:0};if(!o.handler){const r=ht(t);o.handler=r,n.call(this,e,r,i)}o.refCount++}catch(t){}return n.call(this,e,r,i)}})),M(e,"removeEventListener",(function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this,i=e.__sentry_instrumentation_handlers__||{},s=i[n];s&&(s.refCount--,s.refCount<=0&&(t.call(this,n,s.handler,r),s.handler=void 0,delete i[n]),0===Object.keys(i).length&&delete e.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Z))return;const t=XMLHttpRequest.prototype;M(t,"open",(function(t){return function(...n){const e=n[1],r=this.__sentry_xhr_v2__={method:c(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};c(e)&&"POST"===r.method&&e.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this.__sentry_xhr_v2__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}it("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?M(this,"onreadystatechange",(function(t){return function(...n){return i(),t.apply(this,n)}})):this.addEventListener("readystatechange",i),M(this,"setRequestHeader",(function(t){return function(...n){const[e,r]=n,i=this.__sentry_xhr_v2__;return i&&(i.request_headers[e.toLowerCase()]=r),t.apply(this,n)}})),t.apply(this,n)}})),M(t,"send",(function(t){return function(...n){const e=this.__sentry_xhr_v2__;return e&&void 0!==n[0]&&(e.body=n[0]),it("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}();break;case"fetch":!function(){if(!function(){if(!Y())return!1;if(V(K.fetch))return!0;let t=!1;const n=K.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(t=V(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}())return;M(Z,"fetch",(function(t){return function(...n){const{method:e,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[n,e]=t;return{url:ot(n),method:st(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:ot(n),method:st(n,"method")?String(n.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:e,url:r},startTimestamp:Date.now()};return it("fetch",{...i}),t.apply(Z,n).then((t=>(it("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw it("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}();break;case"history":!function(){if(!function(){const t=Q.chrome,n=t&&t.app&&t.app.runtime,e="history"in Q&&!!Q.history.pushState&&!!Q.history.replaceState;return!n&&e}())return;const t=Z.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=ct,n=String(e);ct=n,it("history",{from:t,to:n})}return t.apply(this,n)}}Z.onpopstate=function(...n){const e=Z.location.href,r=ct;if(ct=e,it("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},M(Z.history,"pushState",n),M(Z.history,"replaceState",n)}();break;case"error":ft=Z.onerror,Z.onerror=function(t,n,e,r,i){return it("error",{column:r,error:i,line:e,msg:t,url:n}),!(!ft||ft.__SENTRY_LOADER__)&&ft.apply(this,arguments)},Z.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":dt=Z.onunhandledrejection,Z.onunhandledrejection=function(t){return it("unhandledrejection",t),!(dt&&!dt.__SENTRY_LOADER__)||dt.apply(this,arguments)},Z.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return}}function rt(t,n){tt[t]=tt[t]||[],tt[t].push(n),et(t)}function it(t,n){if(t&&tt[t])for(const e of tt[t]||[])try{e(n)}catch(t){}}function st(t,n){return!!t&&"object"==typeof t&&!!t[n]}function ot(t){return"string"==typeof t?t:t?st(t,"url")?t.url:t.toString?t.toString():"":""}let ct;let ut,at;function ht(t,n=!1){return e=>{if(!e||at===e)return;if(function(t){if("keypress"!==t.type)return!1;try{const n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(e))return;const r="keypress"===e.type?"input":e.type;(void 0===ut||function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(at,e))&&(t({event:e,name:r,global:n}),at=e),clearTimeout(ut),ut=Z.setTimeout((()=>{ut=void 0}),1e3)}}let ft=null;let dt=null;function lt(){const t=S,n=t.crypto||t.msCrypto;if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");const e=n&&n.getRandomValues?()=>n.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function pt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function mt(t){const{message:n,event_id:e}=t;if(n)return n;const r=pt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"<unknown>":e||"<unknown>"}function yt(t,n,e){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=n||""),s.type||(s.type=e||"Error")}function vt(t,n){const e=pt(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r&&r.data,...n.data};e.mechanism.data=t}}function gt(t){if(t&&t.__sentry_captured__)return!0;try{N(t,"__sentry_captured__",!0)}catch(t){}return!1}function bt(t){return Array.isArray(t)?t:[t]}function _t(t,n=100,e=1/0){try{return wt("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Tt(t,n=3,e=102400){const r=_t(t,n);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>e?Tt(t,n-1,e):r;var i}function wt(t,n,e=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,n=t?new WeakSet:[];return[function(e){if(t)return!!n.has(e)||(n.add(e),!1);for(let t=0;t<n.length;t++)if(n[t]===e)return!0;return n.push(e),!1},function(e){if(t)n.delete(e);else for(let t=0;t<n.length;t++)if(n[t]===e){n.splice(t,1);break}}]}()){const[s,o]=i;if(null==n||["number","boolean","string"].includes(typeof n)&&!d(n))return n;const c=function(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n.t)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&n===global)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(a(e=n)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e)return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${J(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const r=function(t){const n=Object.getPrototypeOf(t);return n?n.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var e}(t,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;const u="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:e;if(0===u)return c.replace("object ","");if(s(n))return"[Circular ~]";const h=n;if(h&&"function"==typeof h.toJSON)try{return wt("",h.toJSON(),u-1,r,i)}catch(t){}const f=Array.isArray(n)?[]:{};let l=0;const p=H(n);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(l>=r){f[t]="[MaxProperties ~]";break}const n=p[t];f[t]=wt(t,n,u-1,r,i),l++}return o(n),f}var St;function Et(t){return new xt((n=>{n(t)}))}function $t(t){return new xt(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(St||(St={}));class xt{constructor(t){xt.prototype.__init.call(this),xt.prototype.__init2.call(this),xt.prototype.__init3.call(this),xt.prototype.__init4.call(this),this.i=St.PENDING,this.o=[];try{t(this.u,this.h)}catch(t){this.h(t)}}then(t,n){return new xt(((e,r)=>{this.o.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.l()}))}catch(t){return this.then((t=>t),t)}finally(t){return new xt(((n,e)=>{let r,i;return this.then((n=>{i=!1,r=n,t&&t()}),(n=>{i=!0,r=n,t&&t()})).then((()=>{i?e(r):n(r)}))}))}__init(){this.u=t=>{this.p(St.RESOLVED,t)}}__init2(){this.h=t=>{this.p(St.REJECTED,t)}}__init3(){this.p=(t,n)=>{this.i===St.PENDING&&(f(n)?n.then(this.u,this.h):(this.i=t,this.m=n,this.l()))}}__init4(){this.l=()=>{if(this.i===St.PENDING)return;const t=this.o.slice();this.o=[],t.forEach((t=>{t[0]||(this.i===St.RESOLVED&&t[1](this.m),this.i===St.REJECTED&&t[2](this.m),t[0]=!0)}))}}}function kt(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(r){if(!(void 0===t||n.length<t))return $t(new L("Not adding Promise because buffer limit was reached."));const i=r();return-1===n.indexOf(i)&&n.push(i),i.then((()=>e(i))).then(null,(()=>e(i).then(null,(()=>{})))),i},drain:function(t){return new xt(((e,r)=>{let i=n.length;if(!i)return e(!0);const s=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{Et(t).then((()=>{--i||(clearTimeout(s),e(!0))}),r)}))}))}}}function Ot(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:e,hash:r,relative:n[5]+e+r}}const jt=["fatal","error","warning","log","info","debug"];const Rt=E(),Ct={nowSeconds:()=>Date.now()/1e3};const It=function(){const{performance:t}=Rt;if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),Dt=void 0===It?Ct:{nowSeconds:()=>(It.timeOrigin+It.now())/1e3},Lt=Ct.nowSeconds.bind(Ct),Mt=Dt.nowSeconds.bind(Dt),Nt=(()=>{const{performance:t}=Rt;if(!t||!t.now)return;const n=36e5,e=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-r):n,s=i<n,o=t.timing&&t.timing.navigationStart,c="number"==typeof o?Math.abs(o+e-r):n;return s||c<n?i<=c?t.timeOrigin:o:r})(),At="baggage",qt="sentry-",Ht=/^sentry-/;function Pt(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[n,e],r)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(e)}`,s=0===r?i:`${t},${i}`;return s.length>8192?t:s}),"")}(Object.entries(t).reduce(((t,[n,e])=>(e&&(t[`sentry-${n}`]=e),t)),{}))}function Ut(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[n,e])=>(t[n]=e,t)),{})}const Ft=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Bt(t,n){const e=function(t){if(!t)return;const n=t.match(Ft);if(!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=function(t){if(!c(t)&&!Array.isArray(t))return;let n={};if(Array.isArray(t))n=t.reduce(((t,n)=>({...t,...Ut(n)})),{});else{if(!t)return;n=Ut(t)}const e=Object.entries(n).reduce(((t,[n,e])=>(n.match(Ht)&&(t[n.slice(qt.length)]=e),t)),{});return Object.keys(e).length>0?e:void 0}(n),{traceId:i,parentSpanId:s,parentSampled:o}=e||{},u={traceId:i||lt(),spanId:lt().substring(16),sampled:void 0!==o&&o};return s&&(u.parentSpanId=s),r&&(u.dsc=r),{traceparentData:e,dynamicSamplingContext:r,propagationContext:u}}function Xt(t=lt(),n=lt().substring(16),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}function zt(t,n=[]){return[t,n]}function Wt(t,n){const[e,r]=t;return[e,[...r,n]]}function Gt(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function Jt(t,n){return(n||new TextEncoder).encode(t)}function Kt(t,n){const[e,r]=t;let i=JSON.stringify(e);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[Jt(i,n),t]:i.push("string"==typeof t?Jt(t,n):t)}for(const t of r){const[n,e]=t;if(s(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)s(e);else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify(_t(e))}s(t)}}return"string"==typeof i?i:function(t){const n=t.reduce(((t,n)=>t+n.length),0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(i)}function Yt(t,n){const e="string"==typeof t.data?Jt(t.data,n):t.data;return[F({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const Vt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function Qt(t){return Vt[t]}function Zt(t){if(!t||!t.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function tn(t,{statusCode:n,headers:e},r=Date.now()){const i={...t},s=e&&e["x-sentry-rate-limits"],o=e&&e["retry-after"];if(s)for(const t of s.trim().split(",")){const[n,e]=t.split(":",2),s=parseInt(n,10),o=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))i[t]=r+o;else i.all=r+o}else o?i.all=r+function(t,n=Date.now()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-n}(o,r):429===n&&(i.all=r+6e4);return i}const nn="production";function en(t){const n=Mt(),e={sid:lt(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return F({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(e)};return t&&rn(e,t),e}function rn(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||Mt(),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:lt()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}class sn{constructor(){this.v=!1,this.g=[],this._=[],this.T=[],this.S=[],this.k={},this.O={},this.j={},this.R={},this.C={},this.I=un()}static clone(t){const n=new sn;return t&&(n.T=[...t.T],n.O={...t.O},n.j={...t.j},n.R={...t.R},n.k=t.k,n.D=t.D,n.L=t.L,n.M=t.M,n.N=t.N,n.A=t.A,n._=[...t._],n.q=t.q,n.S=[...t.S],n.C={...t.C},n.I={...t.I}),n}addScopeListener(t){this.g.push(t)}addEventProcessor(t){return this._.push(t),this}setUser(t){return this.k=t||{},this.M&&rn(this.M,{user:t}),this.H(),this}getUser(){return this.k}getRequestSession(){return this.q}setRequestSession(t){return this.q=t,this}setTags(t){return this.O={...this.O,...t},this.H(),this}setTag(t,n){return this.O={...this.O,[t]:n},this.H(),this}setExtras(t){return this.j={...this.j,...t},this.H(),this}setExtra(t,n){return this.j={...this.j,[t]:n},this.H(),this}setFingerprint(t){return this.A=t,this.H(),this}setLevel(t){return this.D=t,this.H(),this}setTransactionName(t){return this.N=t,this.H(),this}setContext(t,n){return null===n?delete this.R[t]:this.R[t]=n,this.H(),this}setSpan(t){return this.L=t,this.H(),this}getSpan(){return this.L}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this.M=t:delete this.M,this.H(),this}getSession(){return this.M}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof sn?n:this}return t instanceof sn?(this.O={...this.O,...t.O},this.j={...this.j,...t.j},this.R={...this.R,...t.R},t.k&&Object.keys(t.k).length&&(this.k=t.k),t.D&&(this.D=t.D),t.A&&(this.A=t.A),t.q&&(this.q=t.q),t.I&&(this.I=t.I)):a(t)&&(t=t,this.O={...this.O,...t.tags},this.j={...this.j,...t.extra},this.R={...this.R,...t.contexts},t.user&&(this.k=t.user),t.level&&(this.D=t.level),t.fingerprint&&(this.A=t.fingerprint),t.requestSession&&(this.q=t.requestSession),t.propagationContext&&(this.I=t.propagationContext)),this}clear(){return this.T=[],this.O={},this.j={},this.k={},this.R={},this.D=void 0,this.N=void 0,this.A=void 0,this.q=void 0,this.L=void 0,this.M=void 0,this.H(),this.S=[],this.I=un(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:Lt(),...t};return this.T=[...this.T,r].slice(-e),this.H(),this}getLastBreadcrumb(){return this.T[this.T.length-1]}clearBreadcrumbs(){return this.T=[],this.H(),this}addAttachment(t){return this.S.push(t),this}getAttachments(){return this.S}clearAttachments(){return this.S=[],this}applyToEvent(t,n={}){if(this.j&&Object.keys(this.j).length&&(t.extra={...this.j,...t.extra}),this.O&&Object.keys(this.O).length&&(t.tags={...this.O,...t.tags}),this.k&&Object.keys(this.k).length&&(t.user={...this.k,...t.user}),this.R&&Object.keys(this.R).length&&(t.contexts={...this.R,...t.contexts}),this.D&&(t.level=this.D),this.N&&(t.transaction=this.N),this.L){t.contexts={trace:this.L.getTraceContext(),...t.contexts};const n=this.L.transaction;if(n){t.sdkProcessingMetadata={dynamicSamplingContext:n.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const e=n.name;e&&(t.tags={transaction:e,...t.tags})}}return this.P(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.T],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this.C,propagationContext:this.I},this.U([...on(),...this._],t,n)}setSDKProcessingMetadata(t){return this.C={...this.C,...t},this}setPropagationContext(t){return this.I=t,this}getPropagationContext(){return this.I}U(t,n,e,r=0){return new xt(((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o({...n},e);f(c)?c.then((n=>this.U(t,n,e,r+1).then(i))).then(null,s):this.U(t,c,e,r+1).then(i).then(null,s)}}))}H(){this.v||(this.v=!0,this.g.forEach((t=>{t(this)})),this.v=!1)}P(t){t.fingerprint=t.fingerprint?bt(t.fingerprint):[],this.A&&(t.fingerprint=t.fingerprint.concat(this.A)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function on(){return $("globalEventProcessors",(()=>[]))}function cn(t){on().push(t)}function un(){return{traceId:lt(),spanId:lt().substring(16),sampled:!1}}const an=100;class hn{constructor(t,n=new sn,e=4){this.F=e,this.B=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this.F<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=sn.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.B}getStackTop(){return this.B[this.B.length-1]}captureException(t,n){const e=this.X=n&&n.event_id?n.event_id:lt(),r=new Error("Sentry syntheticException");return this.W(((i,s)=>{i.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},s)})),e}captureMessage(t,n,e){const r=this.X=e&&e.event_id?e.event_id:lt(),i=new Error(t);return this.W(((s,o)=>{s.captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r},o)})),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:lt();return t.type||(this.X=e),this.W(((r,i)=>{r.captureEvent(t,{...n,event_id:e},i)})),e}lastEventId(){return this.X}addBreadcrumb(t,n){const{scope:e,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=an}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:Lt(),...t},c=i?function(t){if(!("console"in S))return t();const n=S.console,e={};j.forEach((t=>{const r=n[t]&&n[t].__sentry_original__;t in n&&r&&(e[t]=n[t],n[t]=r)}));try{return t()}finally{Object.keys(e).forEach((t=>{n[t]=e[t]}))}}((()=>i(o,n))):o;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,n),e.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:e}=this.getStackTop();e&&t(n)}run(t){const n=dn(this);try{t(this)}finally{dn(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(t){return null}}startTransaction(t,n){return this.G("startTransaction",t,n)}traceHeaders(){return this.G("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.J()}endSession(){const t=this.getStackTop().scope,n=t.getSession();n&&function(t,n){let e={};n?e={status:n}:"ok"===t.status&&(e={status:"exited"}),rn(t,e)}(n),this.J(),t.setSession()}startSession(t){const{scope:n,client:e}=this.getStackTop(),{release:r,environment:i=nn}=e&&e.getOptions()||{},{userAgent:s}=S.navigator||{},o=en({release:r,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&"ok"===c.status&&rn(c,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}J(){const{scope:t,client:n}=this.getStackTop(),e=t.getSession();e&&n&&n.captureSession&&n.captureSession(e)}W(t){const{scope:n,client:e}=this.getStackTop();e&&t(e,n)}G(t,...n){const e=fn().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n)}}function fn(){return S.__SENTRY__=S.__SENTRY__||{extensions:{},hub:void 0},S}function dn(t){const n=fn(),e=pn(n);return mn(n,t),e}function ln(){const t=fn();if(t.__SENTRY__&&t.__SENTRY__.acs){const n=t.__SENTRY__.acs.getCurrentHub();if(n)return n}return function(t=fn()){n=t,n&&n.__SENTRY__&&n.__SENTRY__.hub&&!pn(t).isOlderThan(4)||mn(t,new hn);var n;return pn(t)}(t)}function pn(t){return $("hub",(()=>new hn),t)}function mn(t,n){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0}function yn(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=ln().getClient(),e=t||n&&n.getOptions();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}function vn(t){return(t||ln()).getScope().getTransaction()}let gn=!1;function bn(){const t=vn();if(t){const n="internal_error";t.setStatus(n)}}bn.tag="sentry_tracingErrorCallback";class _n{constructor(t=1e3){this.K=t,this.spans=[]}add(t){this.spans.length>this.K?t.spanRecorder=void 0:this.spans.push(t)}}class Tn{constructor(t){if(this.traceId=lt(),this.spanId=lt().substring(16),this.startTimestamp=Mt(),this.tags={},this.data={},this.instrumenter="sentry",!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.name&&(this.description=t.name),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp),t.instrumenter&&(this.instrumenter=t.instrumenter)}startChild(t){const n=new Tn({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t)),this.setData("http.response.status_code",t);const n=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==n&&this.setStatus(n),this}setName(t){this.description=t}isSuccess(){return"ok"===this.status}finish(t){this.endTimestamp="number"==typeof t?t:Mt()}toTraceparent(){return Xt(this.traceId,this.spanId,this.sampled)}toContext(){return F({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return F({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return F({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function wn(t,n,e){const r=n.getOptions(),{publicKey:i}=n.getDsn()||{},{segment:s}=e&&e.getUser()||{},o=F({environment:r.environment||nn,release:r.release,user_segment:s,public_key:i,trace_id:t});return n.emit&&n.emit("createDsc",o),o}class Sn extends Tn{constructor(t,n){super(t),delete this.description,this.Y={},this.R={},this.V=n||ln(),this.Z=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this.tt=t.trimEnd,this.transaction=this;const e=this.metadata.dynamicSamplingContext;e&&(this.nt={...e})}get name(){return this.Z}set name(t){this.setName(t)}setName(t,n="custom"){this.Z=t,this.metadata.source=n}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new _n(t)),this.spanRecorder.add(this)}setContext(t,n){null===n?delete this.R[t]:this.R[t]=n}setMeasurement(t,n,e=""){this.Y[t]={value:n,unit:e}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0!==this.endTimestamp)return;this.name||(this.name="<unlabeled transaction>"),super.finish(t);const n=this.V.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),!0!==this.sampled)return void(n&&n.recordDroppedEvent("sample_rate","transaction"));const e=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[];this.tt&&e.length>0&&(this.endTimestamp=e.reduce(((t,n)=>t.endTimestamp&&n.endTimestamp?t.endTimestamp>n.endTimestamp?t:n:t)).endTimestamp);const r=this.metadata,i={contexts:{...this.R,trace:this.getTraceContext()},spans:e,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}};return Object.keys(this.Y).length>0&&(i.measurements=this.Y),this.V.captureEvent(i)}toContext(){return F({...super.toContext(),name:this.name,trimEnd:this.tt})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this.tt=t.trimEnd,this}getDynamicSamplingContext(){if(this.nt)return this.nt;const t=this.V||ln(),n=t.getClient();if(!n)return{};const e=t.getScope(),r=wn(this.traceId,n,e),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);const s=this.metadata.source;return s&&"url"!==s&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(t){this.V=t}}const En={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},$n=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class xn extends _n{constructor(t,n,e,r){super(r),this.et=t,this.rt=n,this.transactionSpanId=e}add(t){t.spanId!==this.transactionSpanId&&(t.finish=n=>{t.endTimestamp="number"==typeof n?n:Mt(),this.rt(t.spanId)},void 0===t.endTimestamp&&this.et(t.spanId)),super.add(t)}}class kn extends Sn{constructor(t,n,e=En.idleTimeout,r=En.finalTimeout,i=En.heartbeatInterval,s=!1){super(t,n),this.it=n,this.st=e,this.ot=r,this.ct=i,this.ut=s,this.activities={},this.ht=0,this.ft=!1,this.dt=!1,this.lt=[],this.yt=$n[4],s&&n.configureScope((t=>t.setSpan(this))),this.vt(),setTimeout((()=>{this.ft||(this.setStatus("deadline_exceeded"),this.yt=$n[3],this.finish())}),this.ot)}finish(t=Mt()){if(this.ft=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this.yt),this.spanRecorder){for(const n of this.lt)n(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"));const e=n.startTimestamp<t,r=(this.ot+this.st)/1e3,i=n.endTimestamp-this.startTimestamp<r;return e&&i}))}if(this.ut){const t=this.it.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this.lt.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=t=>{this.ft||this.et(t)},e=t=>{this.ft||this.rt(t)};this.spanRecorder=new xn(n,e,this.spanId,t),this.gt()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this.dt=!1===n,this.bt&&(clearTimeout(this.bt),this.bt=void 0,0===Object.keys(this.activities).length&&this.dt&&(this.yt=$n[5],this.finish(t)))}setFinishReason(t){this.yt=t}vt(t){this.cancelIdleTimeout(),this.bt=setTimeout((()=>{this.ft||0!==Object.keys(this.activities).length||(this.yt=$n[1],this.finish(t))}),this.st)}et(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this.dt}),this.activities[t]=!0}rt(t){if(this.activities[t]&&delete this.activities[t],0===Object.keys(this.activities).length){const t=Mt();this.dt?(this.yt=$n[5],this.finish(t)):this.vt(t+this.st/1e3)}}_t(){if(this.ft)return;const t=Object.keys(this.activities).join("");t===this.Tt?this.ht++:this.ht=1,this.Tt=t,this.ht>=3?(this.setStatus("deadline_exceeded"),this.yt=$n[0],this.finish()):this.gt()}gt(){setTimeout((()=>{this._t()}),this.ct)}}function On(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function jn(t,n,e){if(!yn(n))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return"function"==typeof n.tracesSampler?(r=n.tracesSampler(e),t.setMetadata({sampleRate:Number(r)})):void 0!==e.parentSampled?r=e.parentSampled:void 0!==n.tracesSampleRate?(r=n.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})):(r=1,t.setMetadata({sampleRate:r})),function(t){if(d(t)||"number"!=typeof t&&"boolean"!=typeof t)return!1;if(t<0||t>1)return!1;return!0}(r)&&r?(t.sampled=Math.random()<r,t.sampled,t):(t.sampled=!1,t)}function Rn(t,n){const e=this.getClient(),r=e&&e.getOptions()||{};(r.instrumenter||"sentry")!==(t.instrumenter||"sentry")&&(t.sampled=!1);let i=new Sn(t,this);return i=jn(i,r,{parentSampled:t.parentSampled,transactionContext:t,...n}),i.sampled&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),e&&e.emit&&e.emit("startTransaction",i),i}function Cn(t,n,e,r,i,s,o){const c=t.getClient(),u=c&&c.getOptions()||{};let a=new kn(n,t,e,r,o,i);return a=jn(a,u,{parentSampled:n.parentSampled,transactionContext:n,...s}),a.sampled&&a.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",a),a}function In(){const t=fn();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Rn),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=On),gn||(gn=!0,rt("error",bn),rt("unhandledrejection",bn)))}function captureException(t,n){return ln().captureException(t,{captureContext:n})}function Dn(t){ln().withScope(t)}function Ln(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function Mn(t,n){return e={sentry_key:t.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}},Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&");var e}function Nn(t,n={}){const e="string"==typeof n?n:n.tunnel,r="string"!=typeof n&&n.wt?n.wt.sdk:void 0;return e||`${function(t){return`${Ln(t)}${t.projectId}/envelope/`}(t)}?${Mn(t,r)}`}function An(t,n,e,r){const i=Zt(e),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e&&e.sdk);const o=function(t,n,e,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&{dsn:C(r)},...i&&{trace:F({...i})}}}(t,i,r,n);delete t.sdkProcessingMetadata;return zt(o,[[{type:s},t]])}const qn=[];function Hn(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;n.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(e)?[...n,...e]:"function"==typeof e?bt(e(n)):n;const i=function(t){const n={};return t.forEach((t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)})),Object.keys(n).map((t=>n[t]))}(r),s=function(t,n){for(let e=0;e<t.length;e++)if(!0===n(t[e]))return e;return-1}(i,(t=>"Debug"===t.name));if(-1!==s){const[t]=i.splice(s,1);i.push(t)}return i}function Pn(t,n){n[t.name]=t,-1===qn.indexOf(t.name)&&(t.setupOnce(cn,ln),qn.push(t.name))}function Un(t,n,e,r){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,o={...n,event_id:n.event_id||e.event_id||lt(),timestamp:n.timestamp||Lt()},c=e.integrations||t.integrations.map((t=>t.name));!function(t,n){const{environment:e,release:r,dist:i,maxValueLength:s=250}=n;"environment"in t||(t.environment="environment"in n?e:nn);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=p(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=p(o.value,s));const c=t.request;c&&c.url&&(c.url=p(c.url,s))}(o,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(o,c),void 0===n.type&&function(t,n){const e=S._sentryDebugIds;if(!e)return;let r;const i=Fn.get(n);i?r=i:(r=new Map,Fn.set(n,r));const s=Object.keys(e).reduce(((t,i)=>{let s;const o=r.get(i);o?s=o:(s=n(i),r.set(i,s));for(let n=s.length-1;n>=0;n--){const r=s[n];if(r.filename){t[r.filename]=e[i];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=s[t.filename])}))}))}catch(t){}}(o,t.stackParser);let u=r;e.captureContext&&(u=sn.clone(u).update(e.captureContext));let a=Et(o);if(u){if(u.getAttachments){const t=[...e.attachments||[],...u.getAttachments()];t.length&&(e.attachments=t)}a=u.applyToEvent(o,e)}return a.then((t=>(t&&function(t){const n={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.keys(n).forEach((t=>{e.push({type:"sourcemap",code_file:t,debug_id:n[t]})}))}(t),"number"==typeof i&&i>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:_t(t.data,n,e)}})))},...t.user&&{user:_t(t.user,n,e)},...t.contexts&&{contexts:_t(t.contexts,n,e)},...t.extra&&{extra:_t(t.extra,n,e)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=_t(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=_t(t.data,n,e)),t))));return r}(t,i,s):t)))}const Fn=new WeakMap;function Bn(t){return void 0===t.type}function Xn(t){return"transaction"===t.type}function zn(t,n,e=kt(t.bufferSize||30)){let r={};function i(i){const s=[];if(Gt(i,((n,e)=>{const i=Qt(e);if(function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,i)){const r=Wn(n,e);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(n)})),0===s.length)return Et();const o=zt(i[0],s),c=n=>{Gt(o,((e,r)=>{const i=Wn(e,r);t.recordDroppedEvent(n,Qt(r),i)}))};return e.add((()=>n({body:Kt(o,t.textEncoder)}).then((t=>(r=tn(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof L)return c("queue_overflow"),Et();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>e.drain(t)}}function Wn(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}const Gn="7.64.0";let Jn;class Kn{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=Kn.id}setupOnce(){Jn=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=q(this)||this;return Jn.apply(n,t)}}catch(t){}}}Kn.__initStatic();const Yn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Vn=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class Qn{static __initStatic(){this.id="InboundFilters"}constructor(t={}){this.name=Qn.id,this.St=t}setupOnce(t,n){const e=t=>{const e=n();if(e){const n=e.getIntegration(Qn);if(n){const r=e.getClient(),i=r?r.getOptions():{},s=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:Yn],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[],...t.disableTransactionDefaults?[]:Vn],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(n.St,i);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;if(function(t,n){if(t.type||!n||!n.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception){const{values:n}=t.exception;try{const{type:t="",value:e=""}=n&&n[n.length-1]||{};return[`${e}`,`${t}: ${e}`]}catch(t){return[]}}return[]}(t).some((t=>v(t,n)))}(t,n.ignoreErrors))return!0;if(function(t,n){if("transaction"!==t.type||!n||!n.length)return!1;const e=t.transaction;return!!e&&v(e,n)}(t,n.ignoreTransactions))return!0;if(function(t,n){if(!n||!n.length)return!1;const e=Zn(t);return!!e&&v(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;const e=Zn(t);return!e||v(e,n)}(t,n.allowUrls))return!0;return!1}(t,s)?null:t}}return t};e.id=this.name,t(e)}}function Zn(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(n):null}catch(t){return null}}Qn.__initStatic();var te=Object.freeze({__proto__:null,FunctionToString:Kn,InboundFilters:Qn});const ne=S;const ee=(t,n,e)=>{let r,i;return s=>{n.value>=0&&(s||e)&&(i=n.value-(r||0),(i||void 0===r)&&(r=n.value,n.delta=i,t(n)))}},re=()=>ne.__WEB_VITALS_POLYFILL__?ne.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=ne.performance.timing,n=ne.performance.navigation.type,e={entryType:"navigation",startTime:0,type:2==n?"back_forward":1===n?"reload":"navigate"};for(const n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e})()):ne.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ie=()=>{const t=re();return t&&t.activationStart||0},se=(t,n)=>{const e=re();let r="navigate";return e&&(r=ne.document.prerendering||ie()>0?"prerender":e.type.replace(/_/g,"-")),{name:t,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},oe=(t,n,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{n(t.getEntries())}));return r.observe(Object.assign({type:t,buffered:!0},e||{})),r}}catch(t){}},ce=(t,n)=>{const e=r=>{"pagehide"!==r.type&&"hidden"!==ne.document.visibilityState||(t(r),n&&(removeEventListener("visibilitychange",e,!0),removeEventListener("pagehide",e,!0)))};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)};let ue=-1;const ae=()=>(ue<0&&(ue="hidden"!==ne.document.visibilityState||ne.document.prerendering?1/0:0,ce((({timeStamp:t})=>{ue=t}),!0)),{get firstHiddenTime(){return ue}}),he={};function fe(t){return"number"==typeof t&&isFinite(t)}function de(t,{startTimestamp:n,...e}){return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild({startTimestamp:n,...e})}function le(t){return t/1e3}function pe(){return ne&&ne.addEventListener&&ne.performance}let me,ye,ve=0,ge={};function be(){const t=pe();if(t&&Nt){t.mark&&ne.performance.mark("sentry-tracing-init"),(t=>{const n=ae(),e=se("FID");let r;const i=t=>{t.startTime<n.firstHiddenTime&&(e.value=t.processingStart-t.startTime,e.entries.push(t),r(!0))},s=t=>{t.forEach(i)},o=oe("first-input",s);r=ee(t,e),o&&ce((()=>{s(o.takeRecords()),o.disconnect()}),!0)})((t=>{const n=t.entries.pop();if(!n)return;const e=le(Nt),r=le(n.startTime);ge.fid={value:t.value,unit:"millisecond"},ge["mark.fid"]={value:e+r,unit:"second"}}));const n=(t=>{const n=se("CLS",0);let e,r=0,i=[];const s=t=>{t.forEach((t=>{if(!t.hadRecentInput){const s=i[0],o=i[i.length-1];r&&0!==i.length&&t.startTime-o.startTime<1e3&&t.startTime-s.startTime<5e3?(r+=t.value,i.push(t)):(r=t.value,i=[t]),r>n.value&&(n.value=r,n.entries=i,e&&e())}}))},o=oe("layout-shift",s);if(o){e=ee(t,n);const r=()=>{s(o.takeRecords()),e(!0)};return ce(r),r}})((t=>{const n=t.entries.pop();n&&(ge.cls={value:t.value,unit:""},ye=n)})),e=(t=>{const n=ae(),e=se("LCP");let r;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-ie(),0);t<n.firstHiddenTime&&(e.value=t,e.entries=[i],r())}},s=oe("largest-contentful-paint",i);if(s){r=ee(t,e);const n=()=>{he[e.id]||(i(s.takeRecords()),s.disconnect(),he[e.id]=!0,r(!0))};return["keydown","click"].forEach((t=>{addEventListener(t,n,{once:!0,capture:!0})})),ce(n,!0),n}})((t=>{const n=t.entries.pop();n&&(ge.lcp={value:t.value,unit:"millisecond"},me=n)}));return()=>{n&&n(),e&&e()}}return()=>{}}function _e(t){const n=pe();if(!n||!ne.performance.getEntries||!Nt)return;const e=le(Nt),r=n.getEntries();let i,s;if(r.slice(ve).forEach((n=>{const r=le(n.startTime),o=le(n.duration);if(!("navigation"===t.op&&e+r<t.startTimestamp))switch(n.entryType){case"navigation":!function(t,n,e){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{Te(t,n,r,e)})),Te(t,n,"secureConnection",e,"TLS/SSL","connectEnd"),Te(t,n,"fetch",e,"cache","domainLookupStart"),Te(t,n,"domainLookup",e,"DNS"),function(t,n,e){de(t,{op:"browser",description:"request",startTimestamp:e+le(n.requestStart),endTimestamp:e+le(n.responseEnd)}),de(t,{op:"browser",description:"response",startTimestamp:e+le(n.responseStart),endTimestamp:e+le(n.responseEnd)})}(t,n,e)}(t,n,e),i=e+le(n.responseStart),s=e+le(n.requestStart);break;case"mark":case"paint":case"measure":{!function(t,n,e,r,i){const s=i+e,o=s+r;de(t,{description:n.name,endTimestamp:o,op:n.entryType,startTimestamp:s})}(t,n,r,o,e);const i=ae(),s=n.startTime<i.firstHiddenTime;"first-paint"===n.name&&s&&(ge.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&s&&(ge.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":{const i=n.name.replace(ne.location.origin,"");!function(t,n,e,r,i,s){if("xmlhttprequest"===n.initiatorType||"fetch"===n.initiatorType)return;const o={};"transferSize"in n&&(o["http.response_transfer_size"]=n.transferSize);"encodedBodySize"in n&&(o["http.response_content_length"]=n.encodedBodySize);"decodedBodySize"in n&&(o["http.decoded_response_content_length"]=n.decodedBodySize);"renderBlockingStatus"in n&&(o["resource.render_blocking_status"]=n.renderBlockingStatus);const c=s+r;de(t,{description:e,endTimestamp:c+i,op:n.initiatorType?`resource.${n.initiatorType}`:"resource.other",startTimestamp:c,data:o})}(t,n,i,r,o,e);break}}})),ve=Math.max(r.length-1,0),function(t){const n=ne.navigator;if(!n)return;const e=n.connection;e&&(e.effectiveType&&t.setTag("effectiveConnectionType",e.effectiveType),e.type&&t.setTag("connectionType",e.type),fe(e.rtt)&&(ge["connection.rtt"]={value:e.rtt,unit:"millisecond"}));fe(n.deviceMemory)&&t.setTag("deviceMemory",`${n.deviceMemory} GB`);fe(n.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(n.hardwareConcurrency))}(t),"pageload"===t.op){"number"==typeof i&&(ge.ttfb={value:1e3*(i-t.startTimestamp),unit:"millisecond"},"number"==typeof s&&s<=i&&(ge["ttfb.requestTime"]={value:1e3*(i-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach((n=>{if(!ge[n]||e>=t.startTimestamp)return;const r=ge[n].value,i=e+le(r),s=Math.abs(1e3*(i-t.startTimestamp));ge[n].value=s}));const n=ge["mark.fid"];n&&ge.fid&&(de(t,{description:"first input delay",endTimestamp:n.value+le(ge.fid.value),op:"ui.action",startTimestamp:n.value}),delete ge["mark.fid"]),"fcp"in ge||delete ge.cls,Object.keys(ge).forEach((n=>{t.setMeasurement(n,ge[n].value,ge[n].unit)})),function(t){me&&(me.element&&t.setTag("lcp.element",k(me.element)),me.id&&t.setTag("lcp.id",me.id),me.url&&t.setTag("lcp.url",me.url.trim().slice(0,200)),t.setTag("lcp.size",me.size));ye&&ye.sources&&ye.sources.forEach(((n,e)=>t.setTag(`cls.source.${e+1}`,k(n.node))))}(t)}me=void 0,ye=void 0,ge={}}function Te(t,n,e,r,i,s){const o=s?n[s]:n[`${e}End`],c=n[`${e}Start`];c&&o&&de(t,{op:"browser",description:i||e,startTimestamp:r+le(c),endTimestamp:r+le(o)})}const we=["localhost",/^\/(?!\/)/],Se={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:we,tracePropagationTargets:we};function Ee(t){const{traceFetch:n,traceXHR:e,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o}={traceFetch:Se.traceFetch,traceXHR:Se.traceXHR,...t},c="function"==typeof s?s:t=>!0,u=t=>function(t,n){return v(t,n||we)}(t,r||i),a={};n&&rt("fetch",(t=>{const n=function(t,n,e,r){if(!yn()||!t.fetchData)return;const i=n(t.fetchData.url);if(t.endTimestamp&&i){const n=t.fetchData.__span;if(!n)return;const e=r[n];if(e){if(t.response){e.setHttpStatus(t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length"),r=parseInt(n);r>0&&e.setData("http.response_content_length",r)}else t.error&&e.setStatus("internal_error");e.finish(),delete r[n]}return}const s=ln(),o=s.getScope(),c=s.getClient(),u=o.getSpan(),{method:a,url:h}=t.fetchData,f=i&&u?u.startChild({data:{url:h,type:"fetch","http.method":a},description:`${a} ${h}`,op:"http.client"}):void 0;f&&(t.fetchData.__span=f.spanId,r[f.spanId]=f);if(e(t.fetchData.url)&&c){const n=t.args[0];t.args[1]=t.args[1]||{};const e=t.args[1];e.headers=function(t,n,e,r,i){const s=i||e.getSpan(),o=s&&s.transaction,{traceId:c,sampled:u,dsc:a}=e.getPropagationContext(),h=s?s.toTraceparent():Xt(c,void 0,u),f=Pt(o?o.getDynamicSamplingContext():a||wn(c,n,e)),d="undefined"!=typeof Request&&l(t,Request)?t.headers:r.headers;if(d){if("undefined"!=typeof Headers&&l(d,Headers)){const t=new Headers(d);return t.append("sentry-trace",h),f&&t.append(At,f),t}if(Array.isArray(d)){const t=[...d,["sentry-trace",h]];return f&&t.push([At,f]),t}{const t="baggage"in d?d.baggage:void 0,n=[];return Array.isArray(t)?n.push(...t):t&&n.push(t),f&&n.push(f),{...d,"sentry-trace":h,baggage:n.length>0?n.join(","):void 0}}}return{"sentry-trace":h,baggage:f}}(n,c,o,e,f)}return f}(t,c,u,a);o&&n&&$e(n)})),e&&rt("xhr",(t=>{const n=function(t,n,e,r){const i=t.xhr,s=i&&i.__sentry_xhr_v2__;if(!yn()||i&&i.__sentry_own_request__||!i||!s)return;const o=n(s.url);if(t.endTimestamp&&o){const t=i.__sentry_xhr_span_id__;if(!t)return;const n=r[t];return void(n&&(n.setHttpStatus(s.status_code),n.finish(),delete r[t]))}const c=ln(),u=c.getScope(),a=u.getSpan(),h=o&&a?a.startChild({data:{...s.data,type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client"}):void 0;h&&(i.__sentry_xhr_span_id__=h.spanId,r[i.__sentry_xhr_span_id__]=h);if(i.setRequestHeader&&e(s.url))if(h){const t=h&&h.transaction,n=Pt(t&&t.getDynamicSamplingContext());ke(i,h.toTraceparent(),n)}else{const t=c.getClient(),{traceId:n,sampled:e,dsc:r}=u.getPropagationContext();ke(i,Xt(n,void 0,e),Pt(r||(t?wn(n,t,u):void 0)))}return h}(t,c,u,a);o&&n&&$e(n)}))}function $e(t){const n=t.data.url,e=new PerformanceObserver((r=>{r.getEntries().forEach((r=>{if(("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(n)){(function(t){const{name:n,version:e}=function(t){let n="unknown",e="unknown",r="";for(const i of t){if("/"===i){[n,e]=t.split("/");break}if(!isNaN(Number(i))){n="h"===r?"http":r,e=t.split(r)[1];break}r+=i}r===t&&(n=r);return{name:n,version:e}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",e],["network.protocol.name",n]),!Nt)return r;return[...r,["http.request.redirect_start",xe(t.redirectStart)],["http.request.fetch_start",xe(t.fetchStart)],["http.request.domain_lookup_start",xe(t.domainLookupStart)],["http.request.domain_lookup_end",xe(t.domainLookupEnd)],["http.request.connect_start",xe(t.connectStart)],["http.request.secure_connection_start",xe(t.secureConnectionStart)],["http.request.connection_end",xe(t.connectEnd)],["http.request.request_start",xe(t.requestStart)],["http.request.response_start",xe(t.responseStart)],["http.request.response_end",xe(t.responseEnd)]]})(r).forEach((n=>t.setData(...n))),e.disconnect()}}))}));e.observe({entryTypes:["resource"]})}function xe(t){return((Nt||performance.timeOrigin)+t)/1e3}function ke(t,n,e){try{t.setRequestHeader("sentry-trace",n),e&&t.setRequestHeader(At,e)}catch(t){}}const Oe={...En,markBackgroundTransactions:!0,routingInstrumentation:function(t,n=!0,e=!0){if(!ne||!ne.location)return;let r,i=ne.location.href;n&&(r=t({name:ne.location.pathname,startTimestamp:Nt?Nt/1e3:void 0,op:"pageload",metadata:{source:"url"}})),e&&rt("history",(({to:n,from:e})=>{void 0===e&&i&&-1!==i.indexOf(n)?i=void 0:e!==n&&(i=void 0,r&&r.finish(),r=t({name:ne.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Se};class je{constructor(t){this.name="BrowserTracing",this.Et=!1,In(),this.options={...Oe,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this.$t=be(),this.options.enableLongTask&&oe("longtask",(t=>{for(const n of t){const t=vn();if(!t)return;const e=le(Nt+n.startTime),r=le(n.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:e,endTimestamp:e+r})}})),this.options._experiments.enableInteractions&&oe("event",(t=>{for(const n of t){const t=vn();if(!t)return;if("click"===n.name){const e=le(Nt+n.startTime),r=le(n.duration);t.startChild({description:k(n.target),op:`ui.interaction.${n.name}`,startTimestamp:e,endTimestamp:e+r})}}}),{durationThreshold:0})}setupOnce(t,n){this.xt=n;const e=n().getClient(),r=e&&e.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:o,markBackgroundTransactions:c,traceFetch:u,traceXHR:a,shouldCreateSpanForRequest:h,enableHTTPTimings:f,_experiments:d}=this.options,l=r&&r.tracePropagationTargets||this.options.tracePropagationTargets;i((t=>{const e=this.kt(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(e,t,n),e}),o,s),c&&ne&&ne.document&&ne.document.addEventListener("visibilitychange",(()=>{const t=vn();if(ne.document.hidden&&t){const n="cancelled";t.status||t.setStatus(n),t.setTag("visibilitychange","document.hidden"),t.finish()}})),d.enableInteractions&&this.Ot(),Ee({traceFetch:u,traceXHR:a,tracePropagationTargets:l,shouldCreateSpanForRequest:h,enableHTTPTimings:f})}kt(t){if(!this.xt)return;const n=this.xt(),{beforeNavigate:e,idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,o="pageload"===t.op,c=o?Re("sentry-trace"):"",u=o?Re("baggage"):"",{traceparentData:a,dynamicSamplingContext:h,propagationContext:f}=Bt(c,u),d={...t,...a,metadata:{...t.metadata,dynamicSamplingContext:a&&!h?{}:h},trimEnd:!0},l="function"==typeof e?e(d):d,p=void 0===l?{...d,sampled:!1}:l;p.metadata=p.name!==d.name?{...p.metadata,source:"custom"}:p.metadata,this.jt=p.name,this.Rt=p.metadata&&p.metadata.source;const{location:m}=ne,y=Cn(n,p,r,i,!0,{location:m},s),v=n.getScope();return o&&a?v.setPropagationContext(f):v.setPropagationContext({traceId:y.traceId,spanId:y.spanId,parentSpanId:y.parentSpanId,sampled:!!y.sampled}),y.registerBeforeFinishCallback((t=>{this.$t(),_e(t)})),y}Ot(){let t;const n=()=>{const{idleTimeout:n,finalTimeout:e,heartbeatInterval:r}=this.options,i=vn();if(i&&i.op&&["navigation","pageload"].includes(i.op))return;if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this.xt)return;if(!this.jt)return;const s=this.xt(),{location:o}=ne,c={name:this.jt,op:"ui.action.click",trimEnd:!0,metadata:{source:this.Rt||"url"}};t=Cn(s,c,n,e,!0,{location:o},r)};["click"].forEach((t=>{addEventListener(t,n,{once:!1,capture:!0})}))}}function Re(t){const n=(e=`meta[name=${t}]`,x.document&&x.document.querySelector?x.document.querySelector(e):null);var e;return n?n.getAttribute("content"):void 0}function Ce(){In()}const Ie=S;let De=0;function Le(){return De>0}function Me(){De++,setTimeout((()=>{De--}))}function Ne(t,n={},e){if("function"!=typeof t)return t;try{const n=t.__sentry_wrapped__;if(n)return n;if(q(t))return t}catch(n){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);const i=r.map((t=>Ne(t,n)));return t.apply(this,i)}catch(t){throw Me(),Dn((e=>{e.addEventProcessor((t=>(n.mechanism&&(yt(t,void 0,void 0),vt(t,n.mechanism)),t.extra={...t.extra,arguments:r},t))),captureException(t)})),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}A(sentryWrapped,t),N(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function Ae(t,n){const e=He(t,n),r={type:n&&n.name,value:Ue(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function qe(t,n){return{exception:{values:[Ae(t,n)]}}}function He(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Pe.test(t.message))return 1}return 0}(n);try{return t(e,r)}catch(t){}return[]}const Pe=/Minified React error #\d+;/i;function Ue(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function Fe(t,n,e,r){const i=Xe(t,n,e&&e.syntheticException||void 0,r);return vt(i),i.level="error",e&&e.event_id&&(i.event_id=e.event_id),Et(i)}function Be(t,n,e="info",r,i){const s=ze(t,n,r&&r.syntheticException||void 0,i);return s.level=e,r&&r.event_id&&(s.event_id=r.event_id),Et(s)}function Xe(t,n,e,c,u){let f;if(s(n)&&n.error){return qe(t,n.error)}if(o(n)||i(n,"DOMException")){const r=n;if("stack"in n)f=qe(t,n);else{const n=r.name||(o(r)?"DOMError":"DOMException"),i=r.message?`${n}: ${r.message}`:n;f=ze(t,i,e,c),yt(f,i)}return"code"in r&&(f.tags={...f.tags,"DOMException.code":`${r.code}`}),f}if(r(n))return qe(t,n);if(a(n)||h(n)){return f=function(t,n,e,r){const i=ln().getClient(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:h(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:We(n,{isUnhandledRejection:r})}]},extra:{__serialized__:Tt(n,s)}};if(e){const n=He(t,e);n.length&&(o.exception.values[0].stacktrace={frames:n})}return o}(t,n,e,u),vt(f,{synthetic:!0}),f}return f=ze(t,n,e,c),yt(f,`${n}`,void 0),vt(f,{synthetic:!0}),f}function ze(t,n,e,r){const i={message:n};if(r&&e){const r=He(t,e);r.length&&(i.exception={values:[{value:n,stacktrace:{frames:r}}]})}return i}function We(t,{isUnhandledRejection:n}){const e=function(t,n=40){const e=Object.keys(H(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=n)return p(e[0],n);for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");if(!(r.length>n))return t===e.length?r:p(r,n)}return""}(t),r=n?"promise rejection":"exception";if(s(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(h(t)){return`Event \`${function(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}const Ge=1024,Je="Breadcrumbs";class Ke{static __initStatic(){this.id=Je}constructor(t){this.name=Ke.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&rt("console",Ye),this.options.dom&&rt("dom",function(t){function n(n){let e,r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>Ge&&(i=Ge),"string"==typeof r&&(r=[r]);try{const t=n.event;e=function(t){return!!t&&!!t.target}(t)?k(t.target,{keyAttrs:r,maxStringLength:i}):k(t,{keyAttrs:r,maxStringLength:i})}catch(t){e="<unknown>"}0!==e.length&&ln().addBreadcrumb({category:`ui.${n.name}`,message:e},{event:n.event,name:n.name,global:n.global})}return n}(this.options.dom)),this.options.xhr&&rt("xhr",Ve),this.options.fetch&&rt("fetch",Qe),this.options.history&&rt("history",Ze)}addSentryBreadcrumb(t){this.options.sentry&&ln().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:mt(t)},{event:t})}}function Ye(t){for(let n=0;n<t.args.length;n++)if("ref=Ref<"===t.args[n]){t.args[n+1]="viewRef";break}const n={category:"console",data:{arguments:t.args,logger:"console"},level:(e=t.level,"warn"===e?"warning":jt.includes(e)?e:"log"),message:m(t.args," ")};var e;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${m(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}ln().addBreadcrumb(n,{input:t.args,level:t.level})}function Ve(t){const{startTimestamp:n,endTimestamp:e}=t,r=t.xhr.__sentry_xhr_v2__;if(!n||!e||!r)return;const{method:i,url:s,status_code:o,body:c}=r,u={method:i,url:s,status_code:o},a={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:e};ln().addBreadcrumb({category:"xhr",data:u,type:"http"},a)}function Qe(t){const{startTimestamp:n,endTimestamp:e}=t;if(e&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const r=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:e};ln().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:n,endTimestamp:e};ln().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function Ze(t){let n=t.from,e=t.to;const r=Ot(Ie.location.href);let i=Ot(n);const s=Ot(e);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(e=s.relative),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),ln().addBreadcrumb({category:"navigation",data:{from:n,to:e}})}function tr(t,{metadata:n,tunnel:e,dsn:r}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!e&&!!r&&{dsn:C(r)}},s=function(t){return[{type:"user_report"},t]}(t);return zt(i,[s])}Ke.__initStatic();class nr extends class{constructor(t){if(this.St=t,this._integrations={},this.Ct=!1,this.It=0,this.Dt={},this.Lt={},t.dsn&&(this.Mt=D(t.dsn)),this.Mt){const n=Nn(this.Mt,t);this.Nt=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,e){if(gt(t))return;let r=n&&n.event_id;return this.At(this.eventFromException(t,n).then((t=>this.qt(t,n,e))).then((t=>{r=t}))),r}captureMessage(t,n,e,r){let i=e&&e.event_id;const s=u(t)?this.eventFromMessage(String(t),n,e):this.eventFromException(t,e);return this.At(s.then((t=>this.qt(t,e,r))).then((t=>{i=t}))),i}captureEvent(t,n,e){if(n&&n.originalException&&gt(n.originalException))return;let r=n&&n.event_id;return this.At(this.qt(t,n,e).then((t=>{r=t}))),r}captureSession(t){this.Ht()&&("string"!=typeof t.release||(this.sendSession(t),rn(t,{init:!1})))}getDsn(){return this.Mt}getOptions(){return this.St}getSdkMetadata(){return this.St.wt}getTransport(){return this.Nt}flush(t){const n=this.Nt;return n?this.Pt(t).then((e=>n.flush(t).then((t=>e&&t)))):Et(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this.Ht()&&!this.Ct&&(this._integrations=function(t){const n={};return t.forEach((t=>{t&&Pn(t,n)})),n}(this.St.integrations),this.Ct=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(t){return null}}addIntegration(t){Pn(t,this._integrations)}sendEvent(t,n={}){if(this.Mt){let e=An(t,this.Mt,this.St.wt,this.St.tunnel);for(const t of n.attachments||[])e=Wt(e,Yt(t,this.St.transportOptions&&this.St.transportOptions.textEncoder));const r=this.Ut(e);r&&r.then((n=>this.emit("afterSendEvent",t,n)),null)}}sendSession(t){if(this.Mt){const n=function(t,n,e,r){const i=Zt(e);return zt({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:C(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.Mt,this.St.wt,this.St.tunnel);this.Ut(n)}}recordDroppedEvent(t,n,e){if(this.St.sendClientReports){const e=`${t}:${n}`;this.Dt[e]=this.Dt[e]+1||1}}on(t,n){this.Lt[t]||(this.Lt[t]=[]),this.Lt[t].push(n)}emit(t,...n){this.Lt[t]&&this.Lt[t].forEach((t=>t(...n)))}Ft(t,n){let e=!1,r=!1;const i=n.exception&&n.exception.values;if(i){r=!0;for(const t of i){const n=t.mechanism;if(n&&!1===n.handled){e=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&e)&&(rn(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}Pt(t){return new xt((n=>{let e=0;const r=setInterval((()=>{0==this.It?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}Ht(){return!1!==this.getOptions().enabled&&void 0!==this.Mt}Bt(t,n,e){const r=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),Un(r,t,n,e).then((t=>{if(null===t)return t;const{propagationContext:n}=t.sdkProcessingMetadata||{};if(!(t.contexts&&t.contexts.trace)&&n){const{traceId:r,spanId:i,parentSpanId:s,dsc:o}=n;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...t.contexts};const c=o||wn(r,this,e);t.sdkProcessingMetadata={dynamicSamplingContext:c,...t.sdkProcessingMetadata}}return t}))}qt(t,n={},e){return this.Xt(t,n,e).then((t=>t.event_id),(t=>{}))}Xt(t,n,e){const r=this.getOptions(),{sampleRate:i}=r;if(!this.Ht())return $t(new L("SDK not enabled, will not capture event.","log"));const s=Xn(t),o=Bn(t),c=t.type||"error",u=`before send for type \`${c}\``;if(o&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),$t(new L(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const h="replay_event"===c?"replay":c;return this.Bt(t,n,e).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",h,t),new L("An event processor returned `null`, will not send event.","log");if(n.data&&!0===n.data.__sentry__)return e;const i=function(t,n,e){const{beforeSend:r,beforeSendTransaction:i}=t;if(Bn(n)&&r)return r(n,e);if(Xn(n)&&i)return i(n,e);return n}(r,e,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(f(t))return t.then((t=>{if(!a(t)&&null!==t)throw new L(e);return t}),(t=>{throw new L(`${n} rejected with ${t}`)}));if(!a(t)&&null!==t)throw new L(e);return t}(i,u)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",h,t),new L(`${u} returned \`null\`, will not send event.`,"log");const i=e&&e.getSession();!s&&i&&this.Ft(i,r);const o=r.transaction_info;if(s&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,n),r})).then(null,(t=>{if(t instanceof L)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new L(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}At(t){this.It++,t.then((t=>(this.It--,t)),(t=>(this.It--,t)))}Ut(t){if(this.Nt&&this.Mt)return this.emit("beforeEnvelope",t),this.Nt.send(t).then(null,(t=>{}))}zt(){const t=this.Dt;return this.Dt={},Object.keys(t).map((n=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t[n]}}))}}{constructor(t){const n=Ie.SENTRY_SDK_SOURCE||"npm";t.wt=t.wt||{},t.wt.sdk=t.wt.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:Gn}],version:Gn},super(t),t.sendClientReports&&Ie.document&&Ie.document.addEventListener("visibilitychange",(()=>{"hidden"===Ie.document.visibilityState&&this.Wt()}))}eventFromException(t,n){return Fe(this.St.stackParser,t,n,this.St.attachStacktrace)}eventFromMessage(t,n="info",e){return Be(this.St.stackParser,t,n,e,this.St.attachStacktrace)}sendEvent(t,n){const e=this.getIntegrationById(Je);e&&e.addSentryBreadcrumb&&e.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this.Ht())return;const n=tr(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.Ut(n)}Bt(t,n,e){return t.platform=t.platform||"javascript",super.Bt(t,n,e)}Wt(){const t=this.zt();if(0===t.length)return;if(!this.Mt)return;const n=(e=t,zt((r=this.St.tunnel&&C(this.Mt))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||Lt(),discarded_events:e}]]));var e,r,i;this.Ut(n)}}let er;function rr(t,n=function(){if(er)return er;if(V(Ie.fetch))return er=Ie.fetch.bind(Ie);const t=Ie.document;let n=Ie.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(t){}return er=n.bind(Ie)}()){let e=0,r=0;return zn(t,(function(i){const s=i.body.length;e+=s,r++;const o={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};try{return n(t.url,o).then((t=>(e-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return er=void 0,e-=s,r--,$t(t)}}))}function ir(t){return zn(t,(function(n){return new xt(((e,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&e({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const n in t.headers)Object.prototype.hasOwnProperty.call(t.headers,n)&&i.setRequestHeader(n,t.headers[n]);i.send(n.body)}))}))}const sr="?";function or(t,n,e,r){const i={filename:t,function:n,in_app:!0};return void 0!==e&&(i.lineno=e),void 0!==r&&(i.colno=r),i}const cr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ur=/\((\S*)(?::(\d+))(?::(\d+))\)/,ar=[30,t=>{const n=cr.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=ur.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=Tr(n[1]||sr,n[2]);return or(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],hr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,dr=[50,t=>{const n=hr.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=fr.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}let t=n[3],e=n[1]||sr;return[e,t]=Tr(e,t),or(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],lr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pr=[40,t=>{const n=lr.exec(t);return n?or(n[2],n[1]||sr,+n[3],n[4]?+n[4]:void 0):void 0}],mr=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,yr=[10,t=>{const n=mr.exec(t);return n?or(n[2],n[3]||sr,+n[1]):void 0}],vr=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,gr=[20,t=>{const n=vr.exec(t);return n?or(n[5],n[3]||n[4]||sr,+n[1],+n[2]):void 0}],br=[ar,dr,pr],_r=W(...br),Tr=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return e||r?[-1!==t.indexOf("@")?t.split("@")[0]:sr,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};class wr{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=wr.id,this.St={onerror:!0,onunhandledrejection:!0,...t},this.Gt={onerror:Sr,onunhandledrejection:Er}}setupOnce(){Error.stackTraceLimit=50;const t=this.St;for(const n in t){const e=this.Gt[n];e&&t[n]&&(e(),this.Gt[n]=void 0)}}}function Sr(){rt("error",(t=>{const[n,e,r]=kr();if(!n.getIntegration(wr))return;const{msg:i,url:o,line:u,column:a,error:h}=t;if(Le()||h&&h.__sentry_own_request__)return;const f=void 0===h&&c(i)?function(t,n,e,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=s(t)?t.message:t,c="Error";const u=o.match(i);u&&(c=u[1],o=u[2]);return $r({exception:{values:[{type:c,value:o}]}},n,e,r)}(i,o,u,a):$r(Xe(e,h||i,void 0,r,!1),o,u,a);f.level="error",xr(n,h,f,"onerror")}))}function Er(){rt("unhandledrejection",(t=>{const[n,e,r]=kr();if(!n.getIntegration(wr))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(Le()||i&&i.__sentry_own_request__)return!0;const s=u(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Xe(e,i,void 0,r,!0);s.level="error",xr(n,i,s,"onunhandledrejection")}))}function $r(t,n,e,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},u=o.stacktrace=o.stacktrace||{},a=u.frames=u.frames||[],h=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(e,10))?void 0:e,d=c(n)&&n.length>0?n:function(){try{return x.document.location.href}catch(t){return""}}();return 0===a.length&&a.push({colno:h,filename:d,function:"?",in_app:!0,lineno:f}),t}function xr(t,n,e,r){vt(e,{handled:!1,type:r}),t.captureEvent(e,{originalException:n})}function kr(){const t=ln(),n=t.getClient(),e=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,e.stackParser,e.attachStacktrace]}wr.__initStatic();const Or=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class jr{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=jr.id,this.St={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this.St.setTimeout&&M(Ie,"setTimeout",Rr),this.St.setInterval&&M(Ie,"setInterval",Rr),this.St.requestAnimationFrame&&M(Ie,"requestAnimationFrame",Cr),this.St.XMLHttpRequest&&"XMLHttpRequest"in Ie&&M(XMLHttpRequest.prototype,"send",Ir);const t=this.St.eventTarget;if(t){(Array.isArray(t)?t:Or).forEach(Dr)}}}function Rr(t){return function(...n){const e=n[0];return n[0]=Ne(e,{mechanism:{data:{function:J(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}function Cr(t){return function(n){return t.apply(this,[Ne(n,{mechanism:{data:{function:"requestAnimationFrame",handler:J(t)},handled:!0,type:"instrument"}})])}}function Ir(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&M(e,t,(function(n){const e={mechanism:{data:{function:t,handler:J(n)},handled:!0,type:"instrument"}},r=q(n);return r&&(e.mechanism.data.handler=J(r)),Ne(n,e)}))})),t.apply(this,n)}}function Dr(t){const n=Ie,e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(M(e,"addEventListener",(function(n){return function(e,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ne(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:J(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.apply(this,[e,Ne(r,{mechanism:{data:{function:"addEventListener",handler:J(r),target:t},handled:!0,type:"instrument"}}),i])}})),M(e,"removeEventListener",(function(t){return function(n,e,r){const i=e;try{const e=i&&i.__sentry_wrapped__;e&&t.call(this,n,e,r)}catch(t){}return t.call(this,n,i,r)}})))}jr.__initStatic();class Lr{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=Lr.id,this.Jt=t.key||"cause",this.Kt=t.limit||5}setupOnce(t,n){t(((t,e)=>{const r=n(),i=r.getClient(),s=r.getIntegration(Lr);if(!i||!s)return t;const o=i.getOptions();return g(Ae,o.stackParser,o.maxValueLength,s.Jt,s.Kt,t,e),t}))}}Lr.__initStatic();class Mr{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Mr.id}setupOnce(){cn((t=>{if(ln().getIntegration(Mr)){if(!Ie.navigator&&!Ie.location&&!Ie.document)return t;const n=t.request&&t.request.url||Ie.location&&Ie.location.href,{referrer:e}=Ie.document||{},{userAgent:r}=Ie.navigator||{},i={...t.request&&t.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}},s={...t.request,...n&&{url:n},headers:i};return{...t,request:s}}return t}))}}Mr.__initStatic();class Nr{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Nr.id}setupOnce(t,n){const e=t=>{if(t.type)return t;const e=n().getIntegration(Nr);if(e){try{if(function(t,n){if(!n)return!1;if(function(t,n){const e=t.message,r=n.message;if(!e&&!r)return!1;if(e&&!r||!e&&r)return!1;if(e!==r)return!1;if(!qr(t,n))return!1;if(!Ar(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=Hr(n),r=Hr(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!qr(t,n))return!1;if(!Ar(t,n))return!1;return!0}(t,n))return!0;return!1}(t,e.Yt))return null}catch(n){return e.Yt=t}return e.Yt=t}return t};e.id=this.name,t(e)}}function Ar(t,n){let e=Pr(t),r=Pr(n);if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;if(e=e,r=r,r.length!==e.length)return!1;for(let t=0;t<r.length;t++){const n=r[t],i=e[t];if(n.filename!==i.filename||n.lineno!==i.lineno||n.colno!==i.colno||n.function!==i.function)return!1}return!0}function qr(t,n){let e=t.fingerprint,r=n.fingerprint;if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;e=e,r=r;try{return!(e.join("")!==r.join(""))}catch(t){return!1}}function Hr(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Pr(t){const n=t.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}}Nr.__initStatic();var Ur=Object.freeze({__proto__:null,GlobalHandlers:wr,TryCatch:jr,Breadcrumbs:Ke,LinkedErrors:Lr,HttpContext:Mr,Dedupe:Nr});const Fr=[new Qn,new Kn,new jr,new Ke,new wr,new Lr,new Nr,new Mr];function Br(t){t.startSession({ignoreDuration:!0}),t.captureSession()}let Xr={};Ie.Sentry&&Ie.Sentry.Integrations&&(Xr=Ie.Sentry.Integrations);const zr={...Xr,...te,...Ur};return zr.Replay=n,zr.BrowserTracing=je,Ce(),t.Breadcrumbs=Ke,t.BrowserClient=nr,t.BrowserTracing=je,t.Dedupe=Nr,t.FunctionToString=Kn,t.GlobalHandlers=wr,t.HttpContext=Mr,t.Hub=hn,t.InboundFilters=Qn,t.Integrations=zr,t.LinkedErrors=Lr,t.Replay=n,t.SDK_VERSION=Gn,t.Scope=sn,t.Span=Tn,t.TryCatch=jr,t.WINDOW=Ie,t.addBreadcrumb=function(t){ln().addBreadcrumb(t)},t.addExtensionMethods=Ce,t.addGlobalEventProcessor=cn,t.captureEvent=function(t,n){return ln().captureEvent(t,n)},t.captureException=captureException,t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return ln().captureMessage(t,e,r)},t.captureUserFeedback=function(t){const n=ln().getClient();n&&n.captureUserFeedback(t)},t.chromeStackLineParser=ar,t.close=async function(t){const n=ln().getClient();return n?n.close(t):Promise.resolve(!1)},t.configureScope=function(t){ln().configureScope(t)},t.createTransport=zn,t.createUserFeedbackEnvelope=tr,t.defaultIntegrations=Fr,t.defaultStackLineParsers=br,t.defaultStackParser=_r,t.eventFromException=Fe,t.eventFromMessage=Be,t.exceptionFromError=Ae,t.flush=async function(t){const n=ln().getClient();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.geckoStackLineParser=dr,t.getCurrentHub=ln,t.getHubFromCarrier=pn,t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=Fr),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),Ie.SENTRY_RELEASE&&Ie.SENTRY_RELEASE.id&&(t.release=Ie.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const n={...t,stackParser:(e=t.stackParser||_r,Array.isArray(e)?W(...e):e),integrations:Hn(t),transport:t.transport||(Y()?rr:ir)};var e;!function(t,n){!0===n.debug&&console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");const e=ln();e.getScope().update(n.initialScope);const r=new t(n);e.bindClient(r)}(nr,n),t.autoSessionTracking&&function(){if(void 0===Ie.document)return;const t=ln();if(!t.captureSession)return;Br(t),rt("history",(({from:t,to:n})=>{void 0!==t&&t!==n&&Br(ln())}))}()},t.lastEventId=function(){return ln().lastEventId()},t.makeFetchTransport=rr,t.makeMain=dn,t.makeXHRTransport=ir,t.onLoad=function(t){t()},t.opera10StackLineParser=yr,t.opera11StackLineParser=gr,t.setContext=function(t,n){ln().setContext(t,n)},t.setExtra=function(t,n){ln().setExtra(t,n)},t.setExtras=function(t){ln().setExtras(t)},t.setTag=function(t,n){ln().setTag(t,n)},t.setTags=function(t){ln().setTags(t)},t.setUser=function(t){ln().setUser(t)},t.showReportDialog=function(t={},n=ln()){if(!Ie.document)return;const{client:e,scope:r}=n.getStackTop(),i=t.dsn||e&&e.getDsn();if(!i)return;r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=n.lastEventId());const s=Ie.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(t,n){const e=D(t);if(!e)return"";const r=`${Ln(e)}embed/error-page/`;let i=`dsn=${C(e)}`;for(const t in n)if("dsn"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${i}`}(i,t),t.onLoad&&(s.onload=t.onLoad);const o=Ie.document.head||Ie.document.body;o&&o.appendChild(s)},t.startTransaction=function(t,n){return ln().startTransaction({...t},n)},t.winjsStackLineParser=pr,t.withScope=Dn,t.wrap=function(t){return Ne(t)()},t}({});
